package top.revery.api.api.task;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.revery.api.config.UserPageData;
import top.revery.api.entity.task.BaseTask;
import top.revery.api.entity.task.BaseTaskAppeal;

import java.util.Map;

/**
 * @author denghao
 * @title
 * @package
 * @date 2019/12/19 13:52
 */
@RequestMapping("/api_taskAppeal")
public interface ITaskAppealApi {

    //保存任务申诉
    @PostMapping("/save")
    public BaseTaskAppeal  save(@RequestParam("taskId") Long taskId,
                               @RequestParam("content") String content,
                               @RequestParam("id")Long id) throws Exception;

    //分页多条件查询所有
    @PostMapping("/getList")
    public UserPageData getList(@RequestParam(value = "pageNum") int pageNum, @RequestParam(value = "pageSize") int pageSize,
                                @RequestBody Map map);
    @PostMapping("/status")
    public void updateStatus(@RequestBody BaseTaskAppeal baseTaskAppeal) throws Exception;

       @PostMapping("/get")
   public Object getHome();


}
